using Coldairarrow.Util;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Business.SubApp
{
    public class RemoteApi
    {
        private static IConfigurationSection section = ConfigHelper.Configuration.GetSection("MainApI");
        public static string BaseUrl
        {
            get
            {
                return ConfigurationUtil.GetSection("BaseAddress");
            }
        }

        public static string AccessTokenUrl
        {
            get
            {
                return section.GetValue<string>("AccessToken");
            }
        }


        /// <summary>
        /// 生成角色地址
        /// </summary>
        public static string RoleCreateUrl
        {
            get
            {
                return section.GetValue<string>("RoleCreate");
            }
        }

        /// <summary>
        /// 更新角色地址
        /// </summary>
        public static string RoleUpdateUrl
        {
            get
            {
                return section.GetValue<string>("RoleUpdate");
            }
        }

        /// <summary>
        /// 更新角色地址
        /// </summary>
        public static string RoleDeleteUrl
        {
            get
            {
                return section.GetValue<string>("RoleDelete");
            }
        }

        /// <summary>
        /// 生成客户用户地址
        /// </summary>
        public static string CustUserCreateUrl
        {
            get
            {
                return section.GetValue<string>("CustUserCreate");
            }
        }

        /// <summary>
        /// 更新客户用户
        /// </summary>
        public static string CustUserUpdateUrl
        {
            get
            {
                return section.GetValue<string>("CustUserUpdate");
            }
        }

        /// <summary>
        /// 删除客户用户
        /// </summary>
        public static string CustUserDeleteUrl
        {
            get
            {
                return section.GetValue<string>("CustUserDelete");
            }
        }

        /// <summary>
        ///修改密码
        /// </summary>
        public static string UserForgetPasswordUrl
        {
            get
            {
                return section.GetValue<string>("UserForgetPassword");
            }
        }

        /// <summary>
        ///修改头像
        /// </summary>
        public static string UpdateHeadPortraitUrl
        {
            get
            {
                return section.GetValue<string>("UpdateHeadPortrait");
            }
        }

        /// <summary>
        ///密码登录
        /// </summary>
        public static string PasswordLoginUrl
        {
            get
            {
                return section.GetValue<string>("PasswordLogin");
            }
        }

        /// <summary>
        ///OpenId登录
        /// </summary>
        public static string OpenIdLoginUrl
        {
            get
            {
                return section.GetValue<string>("OpenIdLogin");
            }
        }

        /// <summary>
        ///第三方授权注册并登录
        /// </summary>
        public static string OpenIdRegistLoginUrl
        {
            get
            {
                return section.GetValue<string>("OpenIdRegistLogin");
            }
        }
        /// <summary>
        ///密码登录
        /// </summary>
        public static string OPhoneLoginUrl
        {
            get
            {
                return section.GetValue<string>("PasswordLogin");
            }
        }
        /// <summary>
        ///VerificationLogin登录
        /// </summary>
        public static string VerificationLoginUrl
        {
            get
            {
                return section.GetValue<string>("VerificationLogin");
            }
        }

        /// <summary>
        ///SendVerCode登录
        /// </summary>
        public static string SendVerCodeUrl
        {
            get
            {
                return section.GetValue<string>("SendVerCode");
            }
        }

        /// <summary>
        ///SendVerCode登录
        /// </summary>
        public static string GetIdUrl
        {
            get
            {
                return section.GetValue<string>("GetId");
            }
        }
    }
}
